import { createStore } from 'vuex'
import cart from '@/store/cart.js'
import user from '@/store/user.js'
// 创建Vuex store实例
const store = createStore({
 modules:{
   cart,  //挂载cart模块
   user,  //挂载user模块
 }
})
// 向外共享Store的实例对象
export default store